<template>
  <page-header-wrapper :title="false">
    <a-card>
      <div class="table-page-search-wrapper">
        <a-form layout="inline">
          <a-row :gutter="48">
            <a-col :md="8" :sm="24">
              <a-form-item label="退库日期">
                <a-range-picker :value="value4" />
              </a-form-item>
            </a-col>
            <a-col :md="6" :sm="24">
              <a-form-item label="筛选">
                <a-input :value="value" placeholder="请输入" />
              </a-form-item>
            </a-col>
            <a-col :md="(!advanced && 8) || 24" :sm="24">
              <span
                class="table-page-search-submitButtons"
                :style="(advanced && { float: 'right', overflow: 'hidden' }) || {}"
              >
                <a-button type="primary" @click="$refs.table.refresh(true)">查询</a-button>
                <a-button style="margin-left: 8px" @click="() => (queryParam = {})">重置</a-button>
                <!-- <a @click="toggleAdvanced" style="margin-left: 8px">
                        {{ advanced ? '收起' : '展开' }}
                        <a-icon :type="advanced ? 'up' : 'down'"/>
                      </a> -->
              </span>
            </a-col>
          </a-row>
        </a-form>
      </div>
      <a-table 
        ref="table" 
        size="default" 
        rowKey="key" 
        :columns="columns" 
        :scroll="{ x: 1920 }" 
        :data-source="loadData">
        <span slot="serial" slot-scope="text, record, index">
          {{ index + 1 }}
        </span>
      </a-table>
    </a-card>
  </page-header-wrapper>
</template>
      
<script>
export default {
  name: 'MemberListReport',
  data() {
    return {
      mdl: null,
      visible: false,
      value: '',
      value4: '',
      confirmLoading: false,
      // 高级搜索 展开/关闭
      advanced: false,
      // 查询参数
      queryParam: {},
      // 表头
      columns: [
        {
          title: '订单ID',
          dataIndex: 'orderId',
        },
        
        {
          title: '销售日期',
          dataIndex: 'salesDate',
        },
        {
          title: '销售员',
          dataIndex: 'empName',
        },
        {
          title: '归属店',
          dataIndex: 'storeName',
        },
        {
          title: '会员名',
          dataIndex: 'memName',
        },
        {
          title: '会员电话',
          dataIndex: 'phone',
        },
        {
          title: '会员卡号',
          dataIndex: 'cardNo',
        },
        {
          title: '生日',
          dataIndex: 'birthday',
        },
        {
          title: '绑定微信',
          dataIndex: 'weiXin',
        },
        {
          title: '激活会员',
          dataIndex: 'activeStatus',
        },
        {
          title: '消费类型',
          dataIndex: 'consumeType',
        },
      ],
      // 加载数据方法 必须为 Promise 对象
      loadData: [],
    }
  },
  methods: {},
}
</script>